package com.xuanwei.core.util;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author jiangyong
 * @Description TODO
 * @Date 2019/5/5 11:14
 **/
@Component
@ConfigurationProperties(
        prefix = "jwt"
)
public class JwtServer {

    private String secret;

    private Long expiration;

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public Long getExpiration() {
        return expiration;
    }

    public void setExpiration(Long expiration) {
        this.expiration = expiration;
    }
}
